package com.campus_activity.campus_activity.mapper;

import com.campus_activity.campus_activity.domain.po.ActivityImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus_activity.campus_activity.domain.vo.ActivityImgVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 73493
 * @description 针对表【t_activity_img(活动图片表)】的数据库操作Mapper
 * @createDate 2023-04-24 17:05:45
 * @Entity com.campus_activity.campus_activity.pojo.ActivityImg
 */
@Mapper
public interface ActivityImgMapper extends BaseMapper<ActivityImg> {

    /**
     * 批量存入活动图片
     *
     * @param activityImgList
     * @return
     */
    boolean batchSave(List<ActivityImg> activityImgList);

    /**
     * 根据活动id查询活动图片
     */
    List<ActivityImgVO> listActivityImgByActivityId(@Param("id") Long id);
}




